\topmargin -.5in
\textheight 9.in
\parindent 0pt
\parskip .4\baselineskip
\oddsidemargin 0in
\evensidemargin 0in
\textwidth 6.5in
\setcounter{secnumdepth}{0}
% like itemize but bullets are at the left margin
\newenvironment{items}{\begin{list}{$\bullet$}
  {\topsep=0pt \partopsep=0pt \itemsep=0pt
\setlength\labelwidth{.5em}\setlength\leftmargin{1em}
\setlength\rightmargin{1em}
  \def\makelabel##1{##1\hfill}}}{\end{list}}

\newenvironment{llist}{\begin{list}{}{
\setbox0=\hbox{\bf \bs\{m,n\bs\}}
\setlength\labelwidth{\wd0}\setlength\leftmargin{\labelwidth}\addtolength
 \leftmargin{\labelsep}\itemsep=0pt \topsep=0pt  \partopsep=0pt
 \setlength\rightmargin{1em}
 \def\makelabel##1{\bf ##1\hfill}}}{\end{list}}

\newenvironment{flist}{\begin{list}{}{
\setbox0=\hbox{\quad\rm(2)\,\tt l\,\it\[w\/\[wfile\]\]\quad}
\setlength\labelwidth{\wd0}\setlength\leftmargin{\labelwidth}\addtolength
 \leftmargin{\labelsep}\itemsep=0pt \topsep=0pt  \partopsep=0pt
\rightmargin=1em
 \def\makelabel##1{##1\hfill}}}{\end{list}}

\newenvironment{elist}{\begin{list}{}{
\setbox0=\hbox{\quad\tt sed:  error}
\setlength\labelwidth{\wd0}\setlength\leftmargin{\labelwidth}\addtolength
 \leftmargin{\labelsep}\itemsep=0pt \topsep=0pt  \partopsep=0pt
 \parsep=0pt
 \def\makelabel##1{\tt \quad ##1\hfill\rm\,---\,}}}{\end{list}}

\def\ns#1 {{\bf #1}\\}
\def\bs{$\backslash$}
\def\o#1 {{\tt #1}~}
\def\c{{\it command\/}}
\def\mlab#1#2#3{\item[\quad #3\,{\bf #1}\,#2\quad]}
\def\ia#1 #2 (#3){\mlab{\tt #1}{\it #2}{\rm(#3)}}
\def\il#1 #2(#3){\mlab{\tt #1}{\rm #2}{\rm(#3)}}
\def\ib#1 (#2){\mlab{\tt #1}{\ }{\rm(#2)}}
\def\[{{\rm[}}\def\]{\/{\rm]}}
\def\li#1 {\hbox to 1.5in{\hfil}\hbox to 4em{\rm\bs #1\hfil}---~}
\def\w#1(#2){\hbox to 5em{\rm #1\hfil}{\rm(ASCII #2)}\\}

\def\lhead#1{\gdef\@lhead{#1}} \def\lfoot#1{\gdef\@lfoot{#1}}
\def\chead#1{\gdef\@chead{#1}} \def\cfoot#1{\gdef\@cfoot{#1}}
\def\rhead#1{\gdef\@rhead{#1}} \def\rfoot#1{\gdef\@rfoot{#1}}
\def\@lhead{}\def\@lfoot{}\def\@chead{}\def\@cfoot{}\def\@rhead{} \def\@rfoot{}

\def\@threepart#1#2#3{\rlap{#1} \hfil {#2} \hfil \llap{#3}}
\def\ps@threepartheadings
    {\def\@oddhead{\@threepart{\@lhead}{\@chead}{\@rhead}}
    \def\@oddfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}}
    \if@twoside
	\def\@evenhead{\@threepart{\@rhead}{\@chead}{\@lhead}}
	\def\@evenfoot{\@threepart{\@rfoot}{\@cfoot}{\@lfoot}}
    \else
	\def\@evenhead{\@threepart{\@lhead}{\@chead}{\@rhead}}
	\def\@evenfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}} \fi}
\ps@threepartheadings
\lhead{\small\bf SED(1)}\chead{\small\bf USER COMMANDS}\rhead{\small\bf SED(1)}
\lfoot{\small h$^2$ Documentation}\cfoot{\small 21 Sep 19}
\rfoot{\small \thepage}
